package com.kintreda.ieco_server.module.order.service.impl;

import com.kintreda.ieco_server.bean.goods.BangDingSack;
import com.kintreda.ieco_server.core.service.impl.BaseServiceImpl;
import com.kintreda.ieco_server.module.order.service.IBangDingSackService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Created by IntelliJ IDEA
 * @Project_Name ieco_server
 * @Package com.kintreda.ieco_server.module.order.service.impl
 * @Author ZhongYao_H
 * @Date 2019/5/23:13:56
 * @Year 2019 Month 05 Day 23
 * @Date_zh 2019 年 五月 星期四
 */
@Service
public class BangDingSackServiceImpl extends BaseServiceImpl<BangDingSack,String> implements IBangDingSackService {
    @Override
    public BangDingSack getByOrgId(String id,String type) {
        List<BangDingSack> list = query("from BangDingSack where orgId = ? and type = ? ", new Object[]{id,type});
        return list.size()>0?list.get(0):null;
    }
}
